package com.gaga.metadata.entity.database;


import com.gaga.metadata.entity.base.BaseWhere;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 数据库where过滤条件
 * DataBaseWhere
 */
@Getter
@Setter
@Accessors(chain = true)
public class DataBaseWhere extends BaseWhere implements Serializable {

    private static final long serialVersionUID = 4209205512472367171L;


    private DataBaseWhere() {
    }

    public static DataBaseWhere create(DataBaseWhere dataBaseWhere) {
        if (dataBaseWhere == null) {
            return new DataBaseWhere();
        }
        return dataBaseWhere;
    }

    private List<DataBaseOption> options = new ArrayList<>();

}
